package org.foj.service;

import org.foj.model.Comment;
//import org.springframework.flex.remoting.RemotingDestination;
//import org.springframework.flex.remoting.RemotingInclude;
// import org.springframework.security.annotation.Secured;

import javax.jws.WebService;
import java.util.List;

@WebService
//@RemotingDestination(channels = {"my-amf"})
public interface CommentManager {

//  @RemotingInclude
  List<Comment> findCommentsByIssueId(Long issueId);

//  @Secured({"ROLE_ADMIN"})
//  @RemotingInclude
  void deleteAllCommentsForIssueId(Long issueId);

//  @RemotingInclude
  Comment get(Long id);

//  @Secured({"ROLE_USER", "ROLE_ADMIN"})
//  @RemotingInclude
  Comment save(Comment comment);

//  @Secured({"ROLE_ADMIN"})
//  @RemotingInclude
  void remove(Long id);

}
